

package error_handling;


public class Error_Handling {

    
    public static void main(String[] args) {
        try{
            double x = 10;
            double y =0;
            double z =x/y;
            
            System.out.println(z);
        }
        
        catch (Exception err){
            System.out.println(err.getMessage());
        }
    }
    
}
